﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpSoft.Documentation.Html.CSS
{
    /// <summary>
    /// 描述Css中的长度
    /// </summary>
    public struct CssLength
    {
        private float _Value;
        /// <summary>
        /// 值
        /// </summary>
        public float Value
        {
            get { return _Value; }
            set { _Value = value; }
        }

        private CssLengthUnit _Unit;
        /// <summary>
        /// 单位
        /// </summary>
        public CssLengthUnit Unit
        {
            get { return _Unit; }
            set { _Unit = value; }
        }
        
    }

    public enum CssLengthUnit
    {
        /// <summary>
        /// 像素
        /// </summary>
        Px=0,
        Em,
        /// <summary>
        /// x-height
        /// </summary>
        Ex,
        /// <summary>
        /// 毫米
        /// </summary>
        Mm,
        /// <summary>
        /// 厘米
        /// </summary>
        Cm,
        /// <summary>
        /// 英寸
        /// </summary>
        In,
        /// <summary>
        /// 点阵
        /// </summary>
        Pt,
        /// <summary>
        /// 印刷
        /// </summary>
        Pc,


        /// <summary>
        /// 百分比
        /// </summary>
        Percent

    }
}
